package com.miaoshaproject.service;

import com.miaoshaproject.error.BusinessException;
import com.miaoshaproject.service.model.OrderModel;

public interface OrderService {
    //使用1 前端url传秒杀id 下单接口判断是否对应商品id并且活动是否已经开始
    //2 直接在下单接口内判断对应商品是否存在秒杀活动，若存在以秒杀价格下单
    OrderModel createOrder(Integer userId, Integer itemId, Integer promoId, Integer amount) throws BusinessException;
}
